﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using HotelManager.Data_Transfer_Layer;
using HotelManager.Data_Access_Layer;

namespace HotelManager.Business_Logic_Layer
{
    class hoadonBLO
    {
        #region Variables
        private string error;
        private hoadonDAO DAO;
        #endregion

        public hoadonBLO()
        {
            DAO = new hoadonDAO();
            error = "";
        }

        public hoadonDTO[] get()
        {
            return DAO.get();
        }

        public hoadonDTO View_Detail(int hd_id)
        {
            return DAO.View_Detail(hd_id);
        }

        public void Delete(hoadonDTO obj)
        {
            DAO.Delete(obj);
        }

        public void Insert(hoadonDTO obj)
        {
            DAO.Insert(obj);
        }

        public void Update(hoadonDTO obj)
        {
            DAO.Update(obj);
        }
    }
}
